package week4th.jsjf;

public class Test {
    public static void main(String[] args) {
        LinkedOrderedList lol = new LinkedOrderedList();
        lol.add(789);
        lol.add(456);
        lol.add(123);
        lol.removeFirst();
        System.out.println(lol);
        System.out.println();

        LinkedUnorderedList lul = new LinkedUnorderedList();
        lul.addToFront(789);
        lul.addToFront(456);
        lul.addAfter(123, 456);
        lul.removeFirst();
        System.out.println(lul);
        System.out.println();

        ArrayOrderedList aol = new ArrayOrderedList();
        aol.add(456);
        aol.add(789);
        aol.add(123);
        aol.remove(789);
        System.out.println(aol);
        System.out.println();

        ArrayUnorderedList aul = new ArrayUnorderedList();
        aul.addToFront(123);
        aul.addToRear(456);
        aul.addAfter(789, 123);
        aul.remove(789);
        System.out.println(aul);
    }
}
